package com.appcaja.server.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.appcaja.server.model.Orden;

/**
 * Row Mapper para ordenes.
 *
 * @author Jere
 *
 */
public class OrdenRowMapper implements RowMapper
{
	public Object mapRow(ResultSet resultSet, int rowNum) throws SQLException {
		Orden orden = new Orden();
		orden.setCausanteBeneficiario(resultSet.getString("CausanteBeneficiario"));
		orden.setNroExpediente(resultSet.getString("Expediente"));
		orden.setCgi(resultSet.getLong("cgi"));
		orden.setEstado(resultSet.getString("estadoVerif"));
		orden.setFechaVenc(resultSet.getString("fechavenc"));
		return orden;
	}
 
}